package net.begincode.blog.dao.biz;


import net.begincode.blog.dao.BlogKeyWordsMapper;
import net.begincode.blog.entity.BlogKeyWords;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogKeyWordsBizMapper extends BlogKeyWordsMapper {
    int countByKeyWordIdAndFlag(@Param("keyWordId") Long id);

    int insertBatch(@Param("blogKeyWords") List<BlogKeyWords> blogKeyWordsList);

    int delBlogKeyWords(@Param("blogId") Long blogId, @Param("keyWordIds") List<Long> keyWordIds);

    List<BlogKeyWords> selectByBlogId(@Param("blogId") Long blogId);

    List<BlogKeyWords> selectByBlogIds(@Param("blogIds") List<Long> blogIds);
}